<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://localhost:8080/" />
<title>3. create new deployment</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">3. create new deployment</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>/devdocs/logout</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=username</td>
	<td>person1</td>
</tr>
<tr>
	<td>type</td>
	<td>id=password</td>
	<td>person1</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>id=submit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>xpath=(//a[contains(text(),'New')])[3]</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=deploymentVersion</td>
	<td>2.0</td>
</tr>
<tr>
	<td>click</td>
	<td>id=dateOfPlannedDeployment</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=1</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=dateOfActualDeployment</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=1</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=referenceNumber</td>
	<td>123456</td>
</tr>
<tr>
	<td>click</td>
	<td>id=dateOfPlannedTestDeploy</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=1</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=dateOfActualTestDeploy</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=1</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>id=status</td>
	<td>label=Planned</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>id=create</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>css=span.property-value</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>2.0</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>123456</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>System1/Project1</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Planned</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Edit</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=dateOfPlannedDeployment</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=31</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=dateOfActualDeployment</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=30</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=_action_update</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>30/07/2012</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>31/07/2012</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Edit</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Assigned</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=requiredByDate</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=1</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=assignmentComment</td>
	<td>Complete deployment instructions</td>
</tr>
<tr>
	<td>click</td>
	<td>css=#addAssignment &gt; form &gt; fieldset.buttons &gt; input.save</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Complete deployment instructions</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=(//a[contains(text(),'Track Time')])[2]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=dateOfWork</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=23</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=hours</td>
	<td>1</td>
</tr>
<tr>
	<td>type</td>
	<td>id=comments</td>
	<td>Work done</td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='addTimeTracker']/form/fieldset/div[3]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>name=addTimeTracker</td>
	<td>2</td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Work done</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Work done</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>person1</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>System1/Project1</td>
	<td></td>
</tr>

</tbody></table>
</body>
</html>
